package com.bing.beans;

import javax.persistence.*;
import java.util.Date;
import java.util.Set;

/**
 * Created by Administrator on 2014/8/29.
 */
@Entity
@IdClass(SearchPK.class)
public class Search {
    @Id
    private String searchContent;
    @Id
    @Temporal(TemporalType.DATE)
    private Date sTime;

    @OneToMany(mappedBy = "search", fetch = FetchType.EAGER)
    private Set<WeiBo> weiBo;

    public Set<WeiBo> getWeiBo() {
        return weiBo;
    }

    public void setWeiBo(Set<WeiBo> weiBo) {
        this.weiBo = weiBo;
    }

    public Date getsTime() {
        return sTime;
    }

    public void setsTime(Date sTime) {
        this.sTime = sTime;
    }

    public String getSearchContent() {
        return searchContent;
    }

    public void setSearchContent(String searchContent) {
        this.searchContent = searchContent;
    }


}
